package com.zld.smarket.dao;

import com.zld.smarket.dto.GoodsList;
import com.zld.smarket.pojo.GoodsType;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface GoodsTypeMapper {
    int deleteByPrimaryKey(@Param("typeId") Long typeId);

    int insert(GoodsType record);

    GoodsType selectByPrimaryKey(@Param("typeId") Long typeId);

    List<GoodsType> selectAll();

    int updateByPrimaryKey(GoodsType record);

    List<GoodsType> selectAllAndPage(Integer page, Integer limit);

    Long countType();

    List<GoodsType> search(String s, Integer page, Integer limit);

    Long countTypeByNo(Long typeNo);
    List<Long> gettypeno();
}